<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <img src="../image1/1.webp" alt="">
  <script>
    const img = document.querySelector('img')
    img.src = '../image1/2.webp'
    img.title = '刘德华'
  </script>
</body>

</html>